Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

Q is empty.


QTRS
  ↳ Non-Overlap Check

Q restricted rewrite system:
The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

Q is empty.

The TRS is non-overlapping. Hence, we can switch to innermost.

↳ QTRS
  ↳ Non-Overlap Check
QTRS
      ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))


Using Dependency Pairs [1,13] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

PURGE1(add2(N, X)) -> RM2(N, X)
PURGE1(add2(N, X)) -> PURGE1(rm2(N, X))
EQ2(s1(X), s1(Y)) -> EQ2(X, Y)
IFRM3(true, N, add2(M, X)) -> RM2(N, X)
IFRM3(false, N, add2(M, X)) -> RM2(N, X)
RM2(N, add2(M, X)) -> EQ2(N, M)
RM2(N, add2(M, X)) -> IFRM3(eq2(N, M), N, add2(M, X))

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
QDP
          ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

PURGE1(add2(N, X)) -> RM2(N, X)
PURGE1(add2(N, X)) -> PURGE1(rm2(N, X))
EQ2(s1(X), s1(Y)) -> EQ2(X, Y)
IFRM3(true, N, add2(M, X)) -> RM2(N, X)
IFRM3(false, N, add2(M, X)) -> RM2(N, X)
RM2(N, add2(M, X)) -> EQ2(N, M)
RM2(N, add2(M, X)) -> IFRM3(eq2(N, M), N, add2(M, X))

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 3 SCCs with 2 less nodes.

↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
QDP
                ↳ QDPOrderProof
              ↳ QDP
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

EQ2(s1(X), s1(Y)) -> EQ2(X, Y)

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


EQ2(s1(X), s1(Y)) -> EQ2(X, Y)
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
EQ2(x1, x2)  =  x2
s1(x1)  =  s1(x1)

Lexicographic Path Order [19].
Precedence:
trivial

The following usable rules [14] were oriented: none



↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof
              ↳ QDP
              ↳ QDP

Q DP problem:
P is empty.
The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.

↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
QDP
                ↳ QDPOrderProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

IFRM3(true, N, add2(M, X)) -> RM2(N, X)
IFRM3(false, N, add2(M, X)) -> RM2(N, X)
RM2(N, add2(M, X)) -> IFRM3(eq2(N, M), N, add2(M, X))

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


IFRM3(true, N, add2(M, X)) -> RM2(N, X)
IFRM3(false, N, add2(M, X)) -> RM2(N, X)
The remaining pairs can at least by weakly be oriented.

RM2(N, add2(M, X)) -> IFRM3(eq2(N, M), N, add2(M, X))
Used ordering: Combined order from the following AFS and order.
IFRM3(x1, x2, x3)  =  x3
true  =  true
add2(x1, x2)  =  add2(x1, x2)
RM2(x1, x2)  =  x2
false  =  false
eq2(x1, x2)  =  x2
0  =  0
s1(x1)  =  s1(x1)

Lexicographic Path Order [19].
Precedence:
0 > true
0 > false
s1 > false

The following usable rules [14] were oriented:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)



↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ DependencyGraphProof
              ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

RM2(N, add2(M, X)) -> IFRM3(eq2(N, M), N, add2(M, X))

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [13,14,18] contains 0 SCCs with 1 less node.

↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
QDP
                ↳ QDPOrderProof

Q DP problem:
The TRS P consists of the following rules:

PURGE1(add2(N, X)) -> PURGE1(rm2(N, X))

The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
We use the reduction pair processor [13].


The following pairs can be strictly oriented and are deleted.


PURGE1(add2(N, X)) -> PURGE1(rm2(N, X))
The remaining pairs can at least by weakly be oriented.
none
Used ordering: Combined order from the following AFS and order.
PURGE1(x1)  =  PURGE1(x1)
add2(x1, x2)  =  add2(x1, x2)
rm2(x1, x2)  =  x2
nil  =  nil
ifrm3(x1, x2, x3)  =  x3
true  =  true
eq2(x1, x2)  =  eq1(x1)
0  =  0
s1(x1)  =  s1(x1)
false  =  false

Lexicographic Path Order [19].
Precedence:
add2 > PURGE1 > nil
add2 > eq1 > true > nil
add2 > eq1 > false > nil
0 > nil
s1 > eq1 > true > nil
s1 > eq1 > false > nil

The following usable rules [14] were oriented:

rm2(N, nil) -> nil
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))



↳ QTRS
  ↳ Non-Overlap Check
    ↳ QTRS
      ↳ DependencyPairsProof
        ↳ QDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ QDP
              ↳ QDP
              ↳ QDP
                ↳ QDPOrderProof
QDP
                    ↳ PisEmptyProof

Q DP problem:
P is empty.
The TRS R consists of the following rules:

eq2(0, 0) -> true
eq2(0, s1(X)) -> false
eq2(s1(X), 0) -> false
eq2(s1(X), s1(Y)) -> eq2(X, Y)
rm2(N, nil) -> nil
rm2(N, add2(M, X)) -> ifrm3(eq2(N, M), N, add2(M, X))
ifrm3(true, N, add2(M, X)) -> rm2(N, X)
ifrm3(false, N, add2(M, X)) -> add2(M, rm2(N, X))
purge1(nil) -> nil
purge1(add2(N, X)) -> add2(N, purge1(rm2(N, X)))

The set Q consists of the following terms:

eq2(0, 0)
eq2(0, s1(x0))
eq2(s1(x0), 0)
eq2(s1(x0), s1(x1))
rm2(x0, nil)
rm2(x0, add2(x1, x2))
ifrm3(true, x0, add2(x1, x2))
ifrm3(false, x0, add2(x1, x2))
purge1(nil)
purge1(add2(x0, x1))

We have to consider all minimal (P,Q,R)-chains.
The TRS P is empty. Hence, there is no (P,Q,R) chain.